package com.hotel.main.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@SequenceGenerator(name="clients_gen", allocationSize=1, sequenceName="client_seq")
@Table(name = "clients")
public class Client extends AbstractPerson {
	private static final long serialVersionUID = 8950969646880145995L;
	
	@Id 
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="clients_gen")
	private Long id;
	
	@Column(name = "client_UID", length = 30, unique = true)
	private String clientUID;
	
	@Column(name = "secure_code", length = 50)
	private String secureCode;

    @Override
	public Long getId() {
		return id;
	}

    @Override
	public void setId(Long id) {
		this.id = id;
	}

	public void setClientUID(String clientUID) {
		this.clientUID = clientUID;
	}

	public String getClientUID() {
		return clientUID;
	}

	public void setSecureCode(String secureCode) {
		this.secureCode = secureCode;
	}

	public String getSecureCode() {
		return secureCode;
	}

}
